import re

a = 'ssrssrssrssr'

r = re.findall('(ssr){3}',a)

print(r)